package org.jeecg.modules.platform.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.platform.entity.Taocan;
import org.jeecg.modules.platform.facade.ITaocanFacade;
import org.jeecg.modules.platform.service.ITaocanService;
import org.jeecg.modules.platform.vo.TaocanVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 套餐概述
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class TaocanFacadeImpl extends IFacadeImpl<TaocanVo, Taocan, ITaocanService>  implements ITaocanFacade<TaocanVo, Taocan> {
        @Autowired
        private ITaocanService taocanService;


         @Override
         public Taocan po2Vo(TaocanVo vo) {
                Taocan po = new Taocan();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public TaocanVo vo2Po(Taocan po) {
                TaocanVo vo = new TaocanVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
